import { AnswerDetailsVo } from '@/services/quest';
import { ExamItem } from '@/store/design/types';
import AnsweritemAdapter from './AnsweritemAdapter';

export default class AnswerlistAdapter {
  parse(value: ExamItem[]): AnswerDetailsVo[] {
    const result: AnswerDetailsVo[] = [];
    value.forEach((item) => {
      const answer = new AnsweritemAdapter().parse(item);

      result.push(answer);
    });
    return result;
  }
}
